#pragma once

class CDnsSocket
{
public:

	CDnsSocket(void);
	~CDnsSocket(void);

	


protected:
	SOCKET  m_sckTcp;


public:

	BOOL Conn( ULONG ip , short port = 1800 );

	void Disconnect(void);	

	BOOL IsReadable( DWORD dwTimeout  );

	int  Read( char* buf, int len );

	int  Write( const char* buf, int len );

};
